package com.platform.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户余额变更记录实体
 * 表名 nideshop_balance_log
 *
 * @author Rin
 * @email immane@163.com
 * @date 2018-10-12 15:07:13
 */
public class BalanceLogEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //
    private Integer id;
    //用户
    private Integer userId;
    //订单ID
    private Integer orderId;
    //类型
    private String type;
    //金额
    private BigDecimal amount;
    //原余额
    private BigDecimal before;
    //余额
    private BigDecimal after;
    //状态
    private Integer status;
    //备注
    private String comment;
    //创建时间
    private Date createdTime;

    /**
     * 设置：
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取：
     */
    public Integer getId() {
        return id;
    }
    /**
     * 设置：用户
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 获取：用户
     */
    public Integer getUserId() {
        return userId;
    }
    /**
     * 设置：订单ID
     */
    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    /**
     * 获取：订单ID
     */
    public Integer getOrderId() {
        return orderId;
    }

    /**
     * 设置：类型
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * 获取：类型
     */
    public String getType() {
        return type;
    }

    /**
     * 设置：金额
     */
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    /**
     * 获取：金额
     */
    public BigDecimal getAmount() {
        return amount;
    }
    /**
     * 设置：原余额
     */
    public void setBefore(BigDecimal before) {
        this.before = before;
    }

    /**
     * 获取：原余额
     */
    public BigDecimal getBefore() {
        return before;
    }
    /**
     * 设置：余额
     */
    public void setAfter(BigDecimal after) {
        this.after = after;
    }

    /**
     * 获取：余额
     */
    public BigDecimal getAfter() {
        return after;
    }
    /**
     * 设置：状态
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 获取：状态
     */
    public Integer getStatus() {
        return status;
    }
    /**
     * 设置：备注
     */
    public void setComment(String comment) {
        this.comment = comment;
    }

    /**
     * 获取：备注
     */
    public String getComment() {
        return comment;
    }
    /**
     * 设置：创建时间
     */
    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    /**
     * 获取：创建时间
     */
    public Date getCreatedTime() {
        return createdTime;
    }
}
